package org.sy.lab.Java7并发编程实战.三线程同步辅助类.二资源的多副本的并发访问控制;

public class Job implements Runnable {
	private PrintQueue printQueue;
	public Job(PrintQueue printQueue) {
		this.printQueue = printQueue;
	}
	@Override
	public void run() {
		System.out.printf("%s Going to print a job\n", Thread.currentThread().getName());
		printQueue.printJob(new Object());
		System.out.printf("%s: The document has been printed\n", Thread.currentThread().getName());
	}
}
